package main

//路由
import (
	"go-gin/controller"

	"go-gin/middleware"

	"github.com/gin-gonic/gin"
)

func CollectRoute(r *gin.Engine) *gin.Engine {
	r.POST("/api/auth/register", controller.Register)                     //注册
	r.POST("/api/auth/login", controller.Login)                           //登录
	r.GET("/api/auth/info", middleware.AuthMiddleware(), controller.Info) //用户验证

	return r
}
